<?php
class UploadDataController{
	public  function UploadImage(){
		$uploaddir = './uploads/';
		$file = basename($_FILES['userfile']['name']);
		$uploadfile = $uploaddir . $file;
		$result = 'false';
		if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
			$result = "http://tranquangdieu.org/vu/tourguide/uploads/{$file}";
			}
			include 'view/json/uploaddataview.php';
	}
}